import 'package:flutter/foundation.dart' show kIsWeb;
import 'dart:io' as io;

bool isDesktop() {
  if (kIsWeb) return true;
  try {
    return io.Platform.isMacOS || io.Platform.isWindows || io.Platform.isLinux;
  } catch (_) {
    return false;
  }
} 